package com.imay.live.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.imay.live.fragment.dynamics.DynamicsParams;

import java.util.List;

/**
 * Created by Administrator on 2017/2/16.
 */
public class DynamicsModel {

    private List<UserFeedDatasBean> UserFeedDatas;
    private List<UserDatasBean> UserDatas;
    private List<UserCommentDatasBean> UserCommentDatas;

    public List<UserFeedDatasBean> getUserFeedDatas() {
        return UserFeedDatas;
    }

    public void setUserFeedDatas(List<UserFeedDatasBean> UserFeedDatas) {
        this.UserFeedDatas = UserFeedDatas;
    }

    public List<UserDatasBean> getUserDatas() {
        return UserDatas;
    }

    public void setUserDatas(List<UserDatasBean> UserDatas) {
        this.UserDatas = UserDatas;
    }

    public List<UserCommentDatasBean> getUserCommentDatas() {
        return UserCommentDatas;
    }

    public void setUserCommentDatas(List<UserCommentDatasBean> UserCommentDatas) {
        this.UserCommentDatas = UserCommentDatas;
    }

    public static class UserFeedDatasBean implements MultiItemEntity {
        /**
         * FeedId : 18282
         * Uid : 28528
         * FeedType : 1
         * ImgUrl : https://imgs.imay.com/pic-28528-1487571773-4629.jpg
         * Msg : 早春。
         * CreateTime : 1487571786
         * LikeCount : 1
         * IsFeedReposts : 1
         * CommentCount : 1
         * city : 上海市
         * longitude : 121466469
         * latitude : 31199106
         * FeedCommentIDs : [7267]
         * IsLike : true
         * VideoUrl : https://imgs.imay.com/video-28661-1487355029-1649.mp4
         * RepostsCount : 1
         * SendUids : [23647]
         * GiftIncome : 10
         */

        private int FeedId;
        private int Uid;
        private int FeedType;
        private String ImgUrl;
        private String Msg;
        private long CreateTime;
        private int LikeCount;
        private int IsFeedReposts;
        private int CommentCount;
        private String city;
        private long longitude;
        private long latitude;
        private boolean IsLike;
        private String VideoUrl;
        private int RepostsCount;
        private int GiftIncome;
        private List<Integer> FeedCommentIDs;
        private List<Integer> SendUids;
        private List<String> FeedLabels;

        public int getFeedId() {
            return FeedId;
        }

        public void setFeedId(int FeedId) {
            this.FeedId = FeedId;
        }

        public int getUid() {
            return Uid;
        }

        public void setUid(int Uid) {
            this.Uid = Uid;
        }

        public int getFeedType() {
            return FeedType;
        }

        public void setFeedType(int FeedType) {
            this.FeedType = FeedType;
        }

        public String getImgUrl() {
            return ImgUrl;
        }

        public void setImgUrl(String ImgUrl) {
            this.ImgUrl = ImgUrl;
        }

        public String getMsg() {
            return Msg;
        }

        public void setMsg(String Msg) {
            this.Msg = Msg;
        }

        public long getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(long CreateTime) {
            this.CreateTime = CreateTime;
        }

        public int getLikeCount() {
            return LikeCount;
        }

        public void setLikeCount(int LikeCount) {
            this.LikeCount = LikeCount;
        }

        public int getIsFeedReposts() {
            return IsFeedReposts;
        }

        public void setIsFeedReposts(int IsFeedReposts) {
            this.IsFeedReposts = IsFeedReposts;
        }

        public int getCommentCount() {
            return CommentCount;
        }

        public void setCommentCount(int CommentCount) {
            this.CommentCount = CommentCount;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public long getLongitude() {
            return longitude;
        }

        public void setLongitude(long longitude) {
            this.longitude = longitude;
        }

        public long getLatitude() {
            return latitude;
        }

        public void setLatitude(long latitude) {
            this.latitude = latitude;
        }

        public boolean isIsLike() {
            return IsLike;
        }

        public void setIsLike(boolean IsLike) {
            this.IsLike = IsLike;
        }

        public String getVideoUrl() {
            return VideoUrl;
        }

        public void setVideoUrl(String VideoUrl) {
            this.VideoUrl = VideoUrl;
        }

        public int getRepostsCount() {
            return RepostsCount;
        }

        public void setRepostsCount(int RepostsCount) {
            this.RepostsCount = RepostsCount;
        }

        public int getGiftIncome() {
            return GiftIncome;
        }

        public void setGiftIncome(int GiftIncome) {
            this.GiftIncome = GiftIncome;
        }

        public List<Integer> getFeedCommentIDs() {
            return FeedCommentIDs;
        }

        public void setFeedCommentIDs(List<Integer> FeedCommentIDs) {
            this.FeedCommentIDs = FeedCommentIDs;
        }

        public List<Integer> getSendUids() {
            return SendUids;
        }

        public void setSendUids(List<Integer> SendUids) {
            this.SendUids = SendUids;
        }

        // 是否是第一个
        private boolean first = false;

        public boolean isFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        @Override
        public int getItemType() {
            if(getFeedType()== 1){ // 图片
                return DynamicsParams.VIEWTYPE_LINEAR_IMAGE;
            }else if(getFeedType() == 2){ // 视频
                return DynamicsParams.VIEWTYPE_LINEAR_VIDEO;
            }
            return DynamicsParams.VIEWTYPE_NONE;
        }


        public List<String> getFeedLabels() {
            return FeedLabels;
        }

        public void setFeedLabels(List<String> feedLabels) {
            FeedLabels = feedLabels;
        }
    }

    public static class UserDatasBean {
        /**
         * uid : 28528
         * roomId : 140484
         * nick : 大心SILVIA
         * imgHead : https://imgs.imay.com/pic-28528-1483970232-8968.png
         * sex : 2
         * intro : 微博 张大心Silvia
         * nickSort : daxin
         * UserLv : 20
         * LiveLv : 23
         * RealNameStatus : 3
         * myFollow : true
         * LargeVipStatus : 3
         * LiveStatus : 1
         */

        private int uid;
        private int roomId;
        private String nick;
        private String imgHead;
        private int sex;
        private String intro;
        private String nickSort;
        private int UserLv;
        private int LiveLv;
        private int RealNameStatus;
        private boolean myFollow;
        private int LargeVipStatus;
        private int LiveStatus;

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getRoomId() {
            return roomId;
        }

        public void setRoomId(int roomId) {
            this.roomId = roomId;
        }

        public String getNick() {
            return nick;
        }

        public void setNick(String nick) {
            this.nick = nick;
        }

        public String getImgHead() {
            return imgHead;
        }

        public void setImgHead(String imgHead) {
            this.imgHead = imgHead;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public String getIntro() {
            return intro;
        }

        public void setIntro(String intro) {
            this.intro = intro;
        }

        public String getNickSort() {
            return nickSort;
        }

        public void setNickSort(String nickSort) {
            this.nickSort = nickSort;
        }

        public int getUserLv() {
            return UserLv;
        }

        public void setUserLv(int UserLv) {
            this.UserLv = UserLv;
        }

        public int getLiveLv() {
            return LiveLv;
        }

        public void setLiveLv(int LiveLv) {
            this.LiveLv = LiveLv;
        }

        public int getRealNameStatus() {
            return RealNameStatus;
        }

        public void setRealNameStatus(int RealNameStatus) {
            this.RealNameStatus = RealNameStatus;
        }

        public boolean isMyFollow() {
            return myFollow;
        }

        public void setMyFollow(boolean myFollow) {
            this.myFollow = myFollow;
        }

        public int getLargeVipStatus() {
            return LargeVipStatus;
        }

        public void setLargeVipStatus(int LargeVipStatus) {
            this.LargeVipStatus = LargeVipStatus;
        }

        public int getLiveStatus() {
            return LiveStatus;
        }

        public void setLiveStatus(int LiveStatus) {
            this.LiveStatus = LiveStatus;
        }
    }

    public static class UserCommentDatasBean {
        /**
         * Uid : 23417
         * Content : 宝宝不想听
         * CreateTime : 1487358435
         * FeedCommentID : 7205
         * ReplyUid : 30756
         */

        private int Uid;
        private String Content;
        private int CreateTime;
        private int FeedCommentID;
        private int ReplyUid;

        public int getUid() {
            return Uid;
        }

        public void setUid(int Uid) {
            this.Uid = Uid;
        }

        public String getContent() {
            return Content;
        }

        public void setContent(String Content) {
            this.Content = Content;
        }

        public int getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(int CreateTime) {
            this.CreateTime = CreateTime;
        }

        public int getFeedCommentID() {
            return FeedCommentID;
        }

        public void setFeedCommentID(int FeedCommentID) {
            this.FeedCommentID = FeedCommentID;
        }

        public int getReplyUid() {
            return ReplyUid;
        }

        public void setReplyUid(int ReplyUid) {
            this.ReplyUid = ReplyUid;
        }
    }
}
